package com.ming.sportdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ming.sportdemo.bean.Util;
import com.ming.sportdemo.dao.UtilDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UtilService extends IService<Util> {
    public Util getUtilByMessage(@Param("utilName") String utilName,@Param("utilPrice") String utilPrice);
    public List<Util> getAllUtil(@Param("utilName")String utilName,@Param("utilType")String utilType,  @Param("pageStart") int pageStart, @Param("pageSize")int pageSize);
    public int getUtilCounts(@Param("utilName")String utilName);
    public int addUtil(Util util);
    public int deleteUtil(@Param("utilid") int utilid);
    public int updateUtil(Util util);
    Util getByName(@Param("utilName")String utilName);
    int sub(@Param("utilId")int utilId);
}
